package com.dd.cloud.user.entity.doctor;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 患者物流地址表
 * </p>
 *
 * @author 小康
 * @since 2020-03-21
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "患者配送地址表")
public class PatientDeliveryAddr implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 患者物流地址表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true,isAutoIncrement = true)
    private Integer id;

    /**
     * 患者就诊卡ID
     */
    @Column(length = 30, comment = "患者就诊卡ID")
    private String medId;

    /**
     * 是否为默认地址 1是 0不是
     */
    @Column(type = MySqlTypeConstant.TINYINT, comment = "是否为默认地址 1是 0不是")
    private Integer type;

    /**
     * 收货人
     */
    @Column(length = 20, comment = "收货人")
    private String receiver;

    /**
     * 手机号
     */
    @Column(length = 20, comment = "手机号")
    private String mobileNumber;

    /**
     * 收货地址
     */
    @Column(length = 200, comment = "收货地址")
    private String addr;

    /**
     * 省份
     */
    @Column(length = 20, comment = "省份")
    private String province;

    /**
     * 城市
     */
    @Column(length = 20, comment = "城市")
    private String city;

    /**
     * 区
     */
    @Column(length = 20, comment = "区")
    private String district;

    /**
     * 邮编
     */
    @Column(length = 20, comment = "邮编")
    private String postcode;

    /**
     * 创建日期
     */
    @Column(comment = "创建日期")
    private LocalDateTime createDate;

    /**
     * 状态 1正常 2删除
     */
    @Column(type = MySqlTypeConstant.TINYINT, comment = "状态")
    private Integer status;

}
